/**
* 版权声明：${codeGenConfig.developerConfig.company!} 版权所有 违者必究
* 日    期：${date!}
*/
package ${codeGenConfig.table.packageVar!}.entity;

import lombok.Data;
import java.util.Date;
import javax.persistence.*;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * <pre>
 *   ${codeGenConfig.table.tableName!}数据库对象
 * </pre>
 * @author ${codeGenConfig.developerConfig.developer!}
 * @version ${codeGenConfig.developerConfig.version!}
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "${codeGenConfig.table.tableCode!}")
public class ${codeGenConfig.table.classVar!}{
<#list tableClass.fieldColumns as fieldColumn>
    <#if fieldColumn.javaProperty=='id'>
    @Id
    </#if>
    <#if fieldColumn.javaProperty=='mchId' || fieldColumn.javaProperty=='createBy' || fieldColumn.javaProperty=='modifyBy' || fieldColumn.javaProperty=='deleted' || fieldColumn.javaProperty=='delFlag' || fieldColumn.javaProperty=='treePath'>
    @JsonIgnore
    </#if>
    @ApiModelProperty(value = "${fieldColumn.propName!}" <#if fieldColumn.javaProperty=='mchId' || fieldColumn.javaProperty=='createBy' || fieldColumn.javaProperty=='modifyBy' || fieldColumn.javaProperty=='deleted' || fieldColumn.javaProperty=='delFlag' || fieldColumn.javaProperty=='treePath'>,hidden = true </#if>)
    protected ${fieldColumn.jdbcType!} ${fieldColumn.javaProperty!};

</#list>

}
